<template>
  <basic-info-form v-model="form.project" :editable="false"></basic-info-form>
  <acc-needs-form v-model="form.accNeed" :editable="false" :dates="form.dates"></acc-needs-form>
  <food-needs-form v-model="form.foodNeed" :editable="false"></food-needs-form>
  <classroom-needs-form v-model="form.classroomNeed" :editable="false" :dates="form.dates"></classroom-needs-form>
  <el-row justify="center">
    <el-button type="primary" @click="$emit('next')">确认</el-button>
    <el-button @click="$emit('back')" plain>返回</el-button>
  </el-row>
</template>

<script>
import BasicInfoForm from "@/components/BasicInfoForm";
import AccNeedsForm from "@/components/AccNeedsForm";
import FoodNeedsForm from "@/components/FoodNeedsForm";
import ClassroomNeedsForm from "@/components/ClassroomNeedsForm";

export default {
  name: "third",
  props: ['modelValue'],
  emits:['next','back','update:modelValue'],
  components: {BasicInfoForm,AccNeedsForm,FoodNeedsForm,ClassroomNeedsForm},
  methods:{

  },
  computed:{
    form:{
      get() {
        return this.modelValue
      },
      set(value) {
        this.$emit('update:modelValue', value)
      }
    }
  }
}
</script>

<style scoped>

</style>